/*
 * @Author: wangchao
 * @Date: 2024-10-04 12:07:03
 * @LastEditors: wangchao
 * @LastEditTime: 2024-10-08 11:15:27
 * @FilePath: \JD-RTT-Driver\applications\u_app.h
 * @Description:
 * Copyright (c) 2024 by Bingshan Guardian, All Rights Reserved.
 */
#ifndef _U_APP_H_
#define _U_APP_H_

#include <rtthread.h>
#include <rtdevice.h>
#include "board.h"

#define CYCLIC_CONTROL_PERIOD_MS 100U

/**
 *  APP运行模式定义
 */
typedef enum
{
    APP_DO_START,
    APP_DO_STOP,
} VAR_APP_RUN_MODE;

/**
 *  APP操作模式定义
 */
typedef enum
{
    APP_OP_AUTO,
    APP_OP_MANUAL,
    APP_OP_RESET
} VAR_APP_OPERATION_MODE;

VAR_APP_OPERATION_MODE get_current_app_op_mode(void);

#endif
